package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class TenderAgencyInfo {

    public static String tenderAgencyInfo = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<tenderAgencyInfo> \n" +
            "    <tenderAgencyCodeType>{0}</tenderAgencyCodeType>\n" +
            "    <tenderAgencyCode>{1}</tenderAgencyCode>\n" +
            "    <tenderAgencyName>{2}</tenderAgencyName>\n" +
            "    <tenderProjectCode>{3}</tenderProjectCode>\n" +
            "    <artificialPerson>{4}</artificialPerson>\n" +
            "    <artificialPersonCodeType>{5}</artificialPersonCodeType>\n" +
            "    <artificialPersonCode>{6}</artificialPersonCode>\n" +
            "    <contactNumber>{7}</contactNumber>\n" +
            "    <countryRegion>{8}</countryRegion>\n" +
            "    <unitNature>{9}</unitNature>\n" +
            "    <regionCode>{10}</regionCode>\n" +
            "    <industryCode>{11}</industryCode>\n" +
            "    <licNumber>{12}</licNumber>\n" +
            "    <caCode>{13}</caCode>\n" +
            "    <taxNumber>{14}</taxNumber>\n" +
            "    <creditRate>{15}</creditRate>\n" +
            "    <openingBank>{16}</openingBank>\n" +
            "    <basicAccount>{17}</basicAccount>\n" +
            "    <regCapital>{18}</regCapital>\n" +
            "    <regCapCurrency>{19}</regCapCurrency>\n" +
            "    <regUnit>{20}</regUnit>\n" +
            "    <infoReporterName>{21}</infoReporterName>\n" +
            "    <infoReporterCodeType>{22}</infoReporterCodeType>\n" +
            "    <infoReporterCode>{23}</infoReporterCode>\n" +
            "    <infoReporterContactNumber>{24}</infoReporterContactNumber>\n" +
            "    <contactAddress>{25}</contactAddress>\n" +
            "    <zipCode>{26}</zipCode>\n" +
            "    <email>{27}</email>\n" +
            "    <participantType>{28}</participantType>\n" +
            "    <platfVerifier>{29}</platfVerifier>\n" +
            "    <platfVerifierTime>{30}</platfVerifierTime>\n" +
            "    <verifyTime>{31}</verifyTime>\n" +
            "    <platformCode>{32}</platformCode>\n" +
            "    <platformName>{33}</platformName>\n" +
            "    <examinerName>{34}</examinerName>\n" +
            "    <examinerCodeType>{35}</examinerCodeType>\n" +
            "    <examinerCode>{36}</examinerCode>\n" +
            "    <organizationAttachmentCode>{37}</organizationAttachmentCode>\n" +
            "    <licAttachmentCode>{38}</licAttachmentCode>\n" +
            "    <taxAttachmentCode>{39}</taxAttachmentCode>\n" +
            "    <version>{40}</version>\n" +
            "</tenderAgencyInfo>";

    public static void setTenderAgencyInfo(String tenderAgencyInfo,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11,String s12,String s13,String s14,String s15,String s16,String s17,String s18,String s19,String s20
            ,String s21,String s22,String s23,String s24,String s25,String s26,String s27,String s28,String s29,String s30
            ,String s31,String s32,String s33,String s34,String s35,String s36,String s37,String s38,String s39,String s40) {
        TenderAgencyInfo.tenderAgencyInfo = MessageFormat.format(tenderAgencyInfo,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,s26,s27,s28,s29,s30,
                s31,s32,s33,s34,s35,s36,s37,s38,s39,s40);
    }

    public static void setTenderAgencyInfo(){
        setTenderAgencyInfo(tenderAgencyInfo, ParameterUtils.get("tenderAgencyCodeType"),
                                            ParameterUtils.get("tenderAgencyCode"),
                                            ParameterUtils.get("tenderAgencyName"),
                                            ParameterUtils.get("tenderProjectCode"),
                                            ParameterUtils.get("artificialPerson"),
                                            ParameterUtils.get("artificialPersonCodeType"),
                                            ParameterUtils.get("artificialPersonCode"),
                                            ParameterUtils.get("contactNumber"),
                                            ParameterUtils.get("countryRegion"),
                                            ParameterUtils.get("unitNature"),
                                            ParameterUtils.get("regionCode"),
                                            ParameterUtils.get("industryCode"),
                                            ParameterUtils.get("licNumber"),
                                            ParameterUtils.get("caCode"),
                                            ParameterUtils.get("taxNumber"),
                                            ParameterUtils.get("creditRate"),
                                            ParameterUtils.get("openingBank"),
                                            ParameterUtils.get("basicAccount"),
                                            ParameterUtils.get("regCapital"),
                                            ParameterUtils.get("regCapCurrency"),
                                            ParameterUtils.get("regUnit"),
                                            ParameterUtils.get("infoReporterName"),
                                            ParameterUtils.get("infoReporterCodeType"),
                                            ParameterUtils.get("infoReporterCode"),
                                            ParameterUtils.get("infoReporterContactNumber"),
                                            ParameterUtils.get("contactAddress"),
                                            ParameterUtils.get("zipCode"),
                                            ParameterUtils.get("email"),
                                            ParameterUtils.get("participantType"),
                                            ParameterUtils.get("platfVerifier"),
                                            ParameterUtils.get("platfVerifierTime"),
                                            ParameterUtils.get("verifyTime"),
                                            ParameterUtils.get("platformCode"),
                                            ParameterUtils.get("platformName"),
                                            ParameterUtils.get("examinerName"),
                                            ParameterUtils.get("examinerCodeType"),
                                            ParameterUtils.get("examinerCode"),
                                            ParameterUtils.get("organizationAttachmentCode"),
                                            ParameterUtils.get("licAttachmentCode"),
                                            ParameterUtils.get("taxAttachmentCode"),
                                            ParameterUtils.get("version")

                );
    }

    public static void main(String[] args) {
        setTenderAgencyInfo();

        System.out.println(tenderAgencyInfo);
    }
}
